﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tanmia.Warehouse.Core;
using FluentNHibernate.Mapping;

namespace Tanmia.Warehouse.NHibernateRepository.Mapping
{
    public class DiscriminationMap : SubclassMap<Discrimination>
    {
        public DiscriminationMap()
        {
            Table("Discrimination");

            Extends<MovingApproach>();

            HasMany<Discriminator>(x => x.Discriminators).KeyColumn("ItemID");
        }
    }
}
